package com.imooc.springcloud;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author caryguan
 * @version V1.0
 * @Package com.imooc.springcloud
 * @date 2020/10/21 14:40
 */

@SpringBootApplication
@EnableFeignClients
@EnableDiscoveryClient
public class FeignConsumerApp {

    // @FeignClient(value="",primary = )
    // public interface MyService extends IService {
    //
    // }

    public static void main(String[] args) {
        new SpringApplicationBuilder(FeignConsumerApp.class).web(WebApplicationType.SERVLET).run(args);
    }

}